package team.pwy.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import team.pwy.pojo.entity.Movie;
import team.pwy.pojo.entity.Type;

import java.util.List;
import java.util.Map;

/**
 * 本来用来演示:
 *
 * @author feng
 * @date 2023/10/9
 * @Description
 */
@Repository
public interface TypeMapper {
    //    @Select("select movie_id from pwy.pwy_type where #{value} = 1")
    List<Integer> findByType(Map<String, String> map);

    @Select("select * from pwy.pwy_type where id=#{value}")
    Type findByMovieId(Integer movieId);

    @Select("select * from pwy.pwy_type")
    List<Type> findAll();
}
